$(function (){
    result =$("#result").val();
    if (result != null && result !=""){
        alert(result);
    }
    var hId = $("#hId").val();
    $.ajax({
        type: "GET",
        url: "newsystemnoticeview",
        data: "",
        dataType: "json",
        success:function (notice){
            $("#noticeName").html(notice.noticeName);
            $("#noticeDesc1").html(notice.noticeDesc);
          if(notice.noticeState != null && notice.noticeState.trim()=='公开'){
              var date = new Date(notice.outTime);
              var month = date.getMonth() + 1;
              var year = date.getFullYear();
              var day = date.getDate();
              var hour = date.getHours();
              var minute = date.getMinutes()
              var seconds =date.getSeconds()
              var info = year + "年" + month + "月" +
                        day + "日 " + hour + ":" + minute + ":" + seconds
              $(".outTime").html(info);
          }else {
              $(".outTime").html("暂未发布");
          };
        },
        error: function (result) {
            alert("drugName:查询药品名称失败")
        }
    })
})